//package io.terminus.contract.web;

import java.net.InetAddress;

/**
 * @author 居士浩(居士)
 */
public class Demo {
    public static void main(String[] args) throws Exception {
        for (int i = 0; i < 10; i++) {
            long start = System.currentTimeMillis();
            String hostName = InetAddress.getLocalHost().getHostName();
            long end = System.currentTimeMillis();
            System.out.println("耗时=" + (end - start) + "ms" + "hostname=" + hostName);
        }
    }
}
